package com.car.dal.dao.from;

import java.util.List;

import com.car.dal.dao.ibatis.IbatisCommonDao;
import com.car.dal.object.JsFromUser;
import com.car.util.Page;

public class FromUserInURLDaoImpl extends IbatisCommonDao<JsFromUser, Long> implements FromUserInURLDao {

    @Override
    public List<JsFromUser> getFromUserInURLByType(JsFromUser fromUser, Page page) {
        fromUser.setFirstrownum(page.getFirstrownum());
        fromUser.setPagesize(page.getPagesize());
        List<JsFromUser> list = this.queryForEntityList(JsFromUser.class, "getFromUserInURLByType", fromUser);
        return list;
    }

    @Override
    public Integer getFromUserCountInURLByType(JsFromUser fromUser) {
        return this.queryForInteger("getFromUserCountInURLByType", fromUser);
    }
}
